package com.yc.navy.goods.dto;

public class PasswordDTO {
	private String oldpassword;
	private String newpassword;
	private Integer mid;
	
	@Override
	public String toString() {
		return "passwordDTO [oldpassword=" + oldpassword + ", newpassword=" + newpassword + ", mid=" + mid + "]";
	}

	public String getOldpassword() {
		return oldpassword;
	}

	public void setOldpassword(String oldpassword) {
		this.oldpassword = oldpassword;
	}

	public String getNewpassword() {
		return newpassword;
	}

	public void setNewpassword(String newpassword) {
		this.newpassword = newpassword;
	}

	public Integer getMid() {
		return mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((mid == null) ? 0 : mid.hashCode());
		result = prime * result + ((newpassword == null) ? 0 : newpassword.hashCode());
		result = prime * result + ((oldpassword == null) ? 0 : oldpassword.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PasswordDTO other = (PasswordDTO) obj;
		if (mid == null) {
			if (other.mid != null)
				return false;
		} else if (!mid.equals(other.mid))
			return false;
		if (newpassword == null) {
			if (other.newpassword != null)
				return false;
		} else if (!newpassword.equals(other.newpassword))
			return false;
		if (oldpassword == null) {
			if (other.oldpassword != null)
				return false;
		} else if (!oldpassword.equals(other.oldpassword))
			return false;
		return true;
	}
}	
